package cn.edu.wfit.modules.infomanagement.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.edu.wfit.common.core.annotation.Excel;
import cn.edu.wfit.common.core.web.domain.BaseEntity;

/**
 * 宿舍维护对象 cis_dorm
 * 
 * @author 韩强
 * @date 2024-11-19
 */
public class Dorm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宿舍id */
    private Long dormId;

    /** 宿舍名 */
    @Excel(name = "宿舍名")
    private String dormName;

    /** 书院id */
    @Excel(name = "书院id")
    private Long dormbuildingId;

    /** 所在层 */
    @Excel(name = "所在层")
    private Long floor;

    /** 床位数 */
    @Excel(name = "床位数")
    private Long bedNum;

    /** 跟用户表的user_id同一个 */
    @Excel(name = "跟用户表的user_id同一个")
    private Long supervisorId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String supervisorName;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setDormId(Long dormId) 
    {
        this.dormId = dormId;
    }

    public Long getDormId() 
    {
        return dormId;
    }
    public void setDormName(String dormName) 
    {
        this.dormName = dormName;
    }

    public String getDormName() 
    {
        return dormName;
    }
    public void setDormbuildingId(Long dormbuildingId) 
    {
        this.dormbuildingId = dormbuildingId;
    }

    public Long getDormbuildingId() 
    {
        return dormbuildingId;
    }
    public void setFloor(Long floor) 
    {
        this.floor = floor;
    }

    public Long getFloor() 
    {
        return floor;
    }
    public void setBedNum(Long bedNum) 
    {
        this.bedNum = bedNum;
    }

    public Long getBedNum() 
    {
        return bedNum;
    }
    public void setSupervisorId(Long supervisorId) 
    {
        this.supervisorId = supervisorId;
    }

    public Long getSupervisorId() 
    {
        return supervisorId;
    }
    public void setSupervisorName(String supervisorName) 
    {
        this.supervisorName = supervisorName;
    }

    public String getSupervisorName() 
    {
        return supervisorName;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dormId", getDormId())
            .append("dormName", getDormName())
            .append("dormbuildingId", getDormbuildingId())
            .append("floor", getFloor())
            .append("bedNum", getBedNum())
            .append("supervisorId", getSupervisorId())
            .append("supervisorName", getSupervisorName())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
